package com.woniuxy.user.controller;

import com.woniuxy.user.service.UserAreaInfoService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 获取地区经理用户组信息
 */
@RestController
@RequestMapping("/rm")
@AllArgsConstructor
public class GetRmController {
    private UserAreaInfoService userAreaInfoService;
    @RequestMapping("/getRm")
    public List<String> getRm(@RequestParam("username") String  username){
        return userAreaInfoService.getRmByUsername( username);
    }
}
